package com.qingcloud.adminbackend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qingcloud.adminbackend.base.AjaxResult;
import com.qingcloud.adminbackend.entity.aline.*;
import com.qingcloud.adminbackend.entity.aline.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 传感器数据校准表(网格化设备) 服务类
 * </p>
 *
 * @author liuziyong
 * @since 2019-04-11
 */
public interface ISysSensorAlineAitectServiceNew extends IService<SysSensorAlineAitect> {


    /**
     * 室内空气质量参数校准页面分页查询
     */
    IPage<AlinePageAitectVO> findPage(AlinePageDTO alinePageDTO);

    /**
     * 室内空气质量参数校准数据查询
     */
    List<AlinePageAitectVO> find(AlinePageDTO alinePageDTO);

    /**
     * 基础指令下发
     */
    AjaxResult setCommand(BaseSetCommandDTO baseSetCommandDTO);

    /**
     * MQTT参数指令下发
     */
    AjaxResult setMqttCommand(MqttSetCommandDTO mqttSetCommandDTO);

    /**
     * KB值设置指令下发
     */
    AjaxResult setKb(List<AitectKbDTO> aitectKbDTOList);

    /**
     * 查询指令下发
     */
    AjaxResult queryCommand(BaseQueryCommandDTO baseQueryCommandDTO);
    /**
     * 查询TCP指令下发
     */
    AjaxResult command(CommandAdapter adapter);


    /**
     * 导入Excel模板KB值查询指令下发
     */
    AjaxResult importQueryKb(MultipartFile excelFile, String userId, Boolean isAdmin) throws Exception;


    /**
     * 导入Excel模板KB值设置指令下发
     */
    AjaxResult importSetKb(MultipartFile excelFile, String userId, Boolean isAdmin);

}
